package com.itheima.aspect;

import java.util.TimerTask;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledThreadPoolExecutor;

public class AsyncManager {

    private ScheduledExecutorService scheduledExecutorService
            =new ScheduledThreadPoolExecutor(30);

    public void execute(TimerTask task){
        scheduledExecutorService.execute(task);
    }
}
